package model

import "time"

type Chapter struct {
	UserId           string    `json:"userId" gorm:"column:user_id"`
	ChapterId        string    `json:"chapterId" gorm:"column:chapterId"`
	BookName         string    `json:"bookName" gorm:"column:book_name"`
	ChapterName      string    `json:"chapterName" gorm:"column:chapter_name; type:varchar(100);not null"`
	ChapterStoryCore string    `json:"chapterStoryCore" gorm:"chapter_story_core;type:text"`
	ChapterContent   string    `json:"chapterContent" gorm:"column:chapter_content;type:text;not null"`
	CreateAt         time.Time `json:"createAt" gorm:"column:create_at;default:null"`
	IsDeleted        bool      `json:"isDeleted" gorm:"is_deleted"`
	DeleteAt         time.Time `json:"deleteAt" gorm:"column:deleted_at;default:null"`
}
